package net.ib.rpc;

import java.net.InetSocketAddress;

import net.ib.rpc.message.RequestInfo;

/**
 * m&talk server Connection
 * 
 * @author zagals@infobank.net
 * @version 1.0
 * @since 11/02/24
 * @history
 */
public interface Connection {

	public boolean isConnected();

	public void write(RequestInfo messageInfo);

	public void close();

	public void setAttachment(Object attachment);

	public Object getAttachment();

	public InetSocketAddress getRemoteAddress();

	public InetSocketAddress getLocalAddress();

}
